﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ExamSystem.Mdeol
{
    /// <summary>
    /// 学生类
    /// </summary>
    public class Tstudent
    {
        private int tsId;//否	序号，主键，自增

        public int TsId
        {
            get { return tsId; }
            set { tsId = value; }
        }
        private Tclass tcId;//否	班级ID，引用tclass表tcid

        public Tclass TcId
        {
            get { return tcId; }
            set { tcId = value; }
        }
        private string tsNo;//否	学号，唯一

        public string TsNo
        {
            get { return tsNo; }
            set { tsNo = value; }
        }
        private string tsName;//否	姓名

        public string TsName
        {
            get { return tsName; }
            set { tsName = value; }
        }
        private string tsPwd;//否	密码，6到20位

        public string TsPwd
        {
            get { return tsPwd; }
            set { tsPwd = value; }
        }
        private string tsSex;//否	性别，男或女

        public string TsSex
        {
            get { return tsSex; }
            set { tsSex = value; }
        }
        private string tsPhone;//否	手机号，必须是11位

        public string TsPhone
        {
            get { return tsPhone; }
            set { tsPhone = value; }
        }
        private int tsscore;

        public int Tsscore
        {
            get { return tsscore; }
            set { tsscore = value; }
        }
      
        public Tstudent()
        {

        }
        public Tstudent(int tsId, Tclass tcId, string tsNo, string tsName, string tsPwd, string tsSex, string tsPhone)
        {
            this.tsId = tsId;
            this.TcId = tcId;
            this.tsNo = tsNo;
            this.tsName = tsName;
            this.tsPwd = tsPwd;
            this.tsSex = tsSex;
            this.tsPhone = tsPhone;
        }
        public Tstudent(int tsId, Tclass tcId, string tsNo, string tsName, string tsPwd, string tsSex, string tsPhone,int tsscore)
        {
            this.tsId = tsId;
            this.TcId = tcId;
            this.tsNo = tsNo;
            this.tsName = tsName;
            this.tsPwd = tsPwd;
            this.tsSex = tsSex;
            this.tsPhone = tsPhone;
            this.tsscore = tsscore;
        }
    }
}